<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8"></meta>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"></meta>
    <meta name="description" content="Developed By M Abdur Rokib Promy"></meta>
    <meta name="author" content="cosmic"></meta>
    <meta name="keywords" content="Bootstrap 3, Template, Theme, Responsive, Corporate, Business"></meta>
    <link rel="shortcut icon" href="/img/icon.png"></link>

    <title>
      一颗行走的柿子
    </title>

    <!-- Bootstrap core CSS -->
    <link href="/css/bootstrap.min.css" rel="stylesheet"/>
    <link href="/css/theme.css" rel="stylesheet"/>
    <link href="/css/bootstrap-reset.css" rel="stylesheet"/>
    <!-- <link href="css/bootstrap.min.css" rel="stylesheet">-->

    <!--external css-->
    <link href="/assets/font-awesome/css/font-awesome.css" rel="stylesheet" />
    <link rel="stylesheet" href="/css/flexslider.css"/>
    <link href="/assets/bxslider/jquery.bxslider.css" rel="stylesheet" />
    <link rel="stylesheet" href="/css/animate.css"/>
    <link rel="stylesheet" href="/assets/owlcarousel/owl.carousel.css"/>
    <link rel="stylesheet" href="/assets/owlcarousel/owl.theme.css"/>

    <link href="/css/superfish.css" rel="stylesheet" media="screen"/>
    <link href='/css/superfish1.css' rel='stylesheet' type='text/css'/>
    <!-- <link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'> -->


    <!-- Custom styles for this template -->
    <link rel="stylesheet" type="text/css" href="/css/component.css"/>
    <link href="/css/style.css" rel="stylesheet"/>
    <link href="/css/style-responsive.css" rel="stylesheet" />

    <link rel="stylesheet" type="text/css" href="/css/parallax-slider/parallax-slider.css" />
    <script type="text/javascript" src="/js/parallax-slider/modernizr.custom.28468.js" />
	</head>
    <!-- HTML5 shim and Respond.js IE8 support of HTML5 tooltipss and media queries -->
    <!--[if lt IE 9]>
    <script src="js/html5shiv.js">
    </script>
    <script src="js/respond.min.js">
    </script>
    <![endif]-->
    <script type="text/javascript" src="/js/jquery.js"></script>
	<script type="text/javascript" src="/js/superslide.2.1.js"></script>
  

  <body>
  
  	<script src="/demos/googlegg.js"></script>
  	<style type="text/css">		
	*{margin:0;padding:0;list-style:none;}
	body{background:#fff;font:normal 12px/22px 宋体;width:100%;}
	img{border:0;}
	a{text-decoration:none;color:#333;}
	a:hover{color:#1974A1;}
	/* fullSlide */
	.fullSlide{width:100%;position:relative;height:410px;background:#000;}
	.fullSlide .bd{margin:0 auto;position:relative;z-index:0;overflow:hidden;}
	.fullSlide .bd ul{width:100% !important;}
	.fullSlide .bd li{width:100% !important;height:410px;overflow:hidden;text-align:center;}
	.fullSlide .bd li a{display:block;height:410px;}
	.fullSlide .hd{width:100%;position:absolute;z-index:1;bottom:0;left:0;height:30px;line-height:30px;}
	.fullSlide .hd ul{text-align:center;}
	.fullSlide .hd ul li{cursor:pointer;display:inline-block;*display:inline;zoom:1;width:42px;height:11px;margin:1px;overflow:hidden;background:#000;filter:alpha(opacity=50);opacity:0.5;line-height:999px;}
	.fullSlide .hd ul .on{background:#f00;}
	.fullSlide .prev,.fullSlide .next{display:block;position:absolute;z-index:1;top:50%;margin-top:-30px;left:15%;z-index:1;width:40px;height:60px;background:url(/img/slider-arrow.png) -126px -137px #000 no-repeat;cursor:pointer;filter:alpha(opacity=50);opacity:0.5;display:none;}
	.fullSlide .next{left:auto;right:15%;background-position:-6px -137px;}
	</style>
  
  
  
  	
  
  
  
  
  
  
  
  
  
  
    <!--header start-->
  	<header th:include="/common/header" class="head-section">
  	</header>
    <!--header end-->

    <!--breadcrumbs start-->
    <div class="breadcrumbs">
        <div class="container">
            <div class="row">
                <div class="col-lg-4 col-sm-4">
                    <h1>Login</h1>
                </div>
                <div class="col-lg-8 col-sm-8">
                    <ol class="breadcrumb pull-right">
                        <li><a href="#">Home</a></li>
                        <li><a href="#">Features</a></li>
                        <li class="active">Login</li>
                    </ol>
                </div>
            </div>
        </div>
    </div>
    <!--breadcrumbs end-->

    <!--container start-->
    <div class="login-bg">
        <div class="container">
            <div class="form-wrapper">
            <form class="form-signin wow fadeInUp" >
            <h2 class="form-signin-heading">现在就登录</h2>
            <div class="login-wrap">
                <input type="text" id="account" class="form-control"  placeholder="账户.."   />
                <input type="password" id="password"  class="form-control"  placeholder="密码.."   />
                <label class="checkbox">
                    <input type="checkbox" value="remember-me" /> Remember me
                    <span class="pull-right">
                        <a data-toggle="modal" href="javaScript:void(0);">忘记密码?</a>

                    </span>
                </label>
                <span class="btn btn-lg btn-login btn-block" id="logina">登录</span>
                <p>用其他方式登录</p>
                <div class="login-social-link">
                    <a href="index.html" class="facebook">
                        <i class="fa fa-facebook"></i>
                      FaceBook
                    </a>
                    <a href="index.html" class="twitter">
                        <i class="fa fa-twitter"></i>
                      		  &nbsp;chart
                    </a>
                </div>
                <div class="registration">
                   				 还没有账户？
                    <a class="" href="registration.html">
                        		现在就注册！
                    </a>
                </div>

            </div>
          </form>
          </div>
          <input type="hidden" id="beforeurl" th:value="${url}" />
        </div>
    </div>
    <!--container end-->



    <!--footer start-->
    <footer class="footer" th:include="/common/footer"></footer>
    <!-- footer end -->
    <!--small footer start -->
    <footer class="footer-small" th:include="/common/smallfooter"></footer>
    <!--small footer end-->
    
    
  <!-- js placed at the end of the document so the pages load faster -->
    <script src="/js/jquery.js"></script>
    <script src="/js/jquery-1.8.3.min.js">
    </script>
    <script src="/js/bootstrap.min.js"></script>
    <script type="text/javascript" src="/js/hover-dropdown.js"></script>
    <script  src="/js/jquery.flexslider.js" ></script>
    <script type="text/javascript" src="/assets/bxslider/jquery.bxslider.js"></script>

    <script src="/js/jquery.easing.min.js"></script>
    <script src="/js/link-hover.js"></script>


     <!--common script for all pages-->
    <script src="/js/common-scripts.js"></script>
	  <script type="text/javascript">
      $(function() {

        $("#logina").click(function(){
        var account = $("#account").val();
        var password = $("#password").val();
        var param = {
        	"account":account,
        	"password":password
        }
          $.ajax({
        		url:'/loginPost',
        		type:'POST',
        		data:param,
        		dataType:'json',
        		cache:false,//不读取缓存 从新请求
 				async:false,//防止重复提交
		        success:function(result){
		        	if(result.success==true){
						alert("a")
					}else{
						alert(result.message)
					}
				var beurl = $("#beforeurl").val();
				alert(beurl)
				if(beurl==""){
					window.location.href="/index"
				}else{
					window.location.href=beurl
				}
		        //    if(result==''){
		                // $('div[class="m_t_1"]').hide();
		        //        $('table[class="table-responsive"]').hide();
		        //        $('div[class="xinxi_no"]').show();
		        //    }else{
		        //        templateTag.append(result);
		         //   }
		         //   success?success():'';
		        },
		        error:function(XMLHttpRequest,textStatus,errorThrown){
		            if(XMLHttpRequest.status==401){
		                window.location.href = '/index';
		            }
		        }
		    })
        
        
        
        
        
        });

      });
    </script>

    <script src="/js/wow.min.js"></script>
    <script>
        wow = new WOW(
          {
            boxClass:     'wow',      // default
            animateClass: 'animated', // default
            offset:       0          // default
          }
        )
        wow.init();
    </script>

  </body>
</html>
